package com.mission.game.utils;

import com.mission.game.creategame.CreateTextTask;
import com.mission.game.playgame.PlayTextTask;

public class TextTask extends Task {

	private static final long serialVersionUID = -3113520652181705397L;
	private String _correctAnswer;
	private String _userAnswer;

	public TextTask(String name, String description, Mission mission) {
		super(name, description, mission);
		_userAnswer = "";
	}

	public TextTask() {
		this("", "", null);
	}

	@Override
	public Class<?> getCreateClass() {
		return CreateTextTask.class;
	}

	public void setCorrectAnswer(String correctAnswer) {
		_correctAnswer = correctAnswer;
	}

	public String getCorrectAnswer() {
		return _correctAnswer;
	}

	public String getUserAnswer() {
		return _userAnswer;
	}

	public void setUserAnswer(String userAnswer) {
		_userAnswer = userAnswer;
	}

	@Override
	public Class<?> getPlayClass() {
		return PlayTextTask.class;
	}

}
